<template>
	<view class="selectExpo">
		<view  v-for="(data,index) in projectList" class="box line1 scale-1px-bottom" @tap="selectExpoHall(data.id,data.name)">{{data.name}}</view>
	</view>
</template>

<script>
	export default {
		data ()  {
			return {
				projectList:[]
			}
		},
		onLoad(option) {
			this.detail(option.id);
		},
		methods:{
			detail(id){
				let token = uni.getStorageSync('userinfo').token;
				let user_id = uni.getStorageSync('userinfo').id;
				this.http('/api/exhibition/index', 'post', {id:id,token,user_id}, )
				.then((res) => {
					this.projectList = res.data
				})
			},
			selectExpoHall(id,name){
				uni.setStorageSync('hallId',id);
				uni.setStorageSync('hallName',name);
				uni.navigateBack({
					delta:2
				})
				// uni.navigateTo({
				// 	url:'/pages/index/programme/buyInfo?id='
				// })
			}
		}
	}
	
</script>

<style lang="less">
	.selectExpo{
		padding: 0 40rpx;
		.box{
			height: 102rpx;
			line-height: 102rpx;
			font-size:32rpx;
		}
	}
	
</style>
